package com.itheima.mapper;

import com.itheima.pojo.entity.Order;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

@Mapper
public interface OrderMapper {
    @Select("select * from t_order")
    List<Order> selectAll();

    @Update("update t_order set orderStatus = #{orderStatus} where id = #{id}")
    void updateOrder(Order order);
}
